﻿@using Abp.Extensions
@using Abp.Application.Services.Dto
@using KDS.Mes.Web.Models.Common.Modals
@using KDS.Mes.Web.Models.ANDON

@model CreateOrEditANDONModalViewModel


@* 初始化头部 *@
@Html.Partial("~/Views/Common/Modals/_ModalHeader.cshtml", new ModalHeaderViewModel(Model.IsEditMode ? (L("EditFactory") + ": " + Model.ANDON.Line) : L("CreateFactory")))


<!--html代码区域-->
<div class="modal-body">
    <form name="aNDONInformationsForm"   role="form" novalidate class="form-validation">
 <input type="hidden" name="Id" value="@Model.ANDON.Id" />
 <div>
            
               
	     <div hidden="hidden">           
            @if (Model.IsEditMode)
            {
                <input type="hidden" name="Id" value="@Model.ANDON.Id"/>
            }
        </div>
	                  
               
     <div class="form-group">
         <label>@L("Line") <span class="required"> * </span>	 	</label>
         <input class="maxlength-handler form-control @(Model.ANDON.Line.IsNullOrEmpty() ? "" : " edited")" type="text" name="Line" value="@Model.ANDON.Line" required maxlength="20" />
         
     </div>
     <div class="form-group">
         <label>@L("target_UPH")   <span class="required"> * </span>	 	</label>
         <input class="maxlength-handler form-control @(Model.ANDON.UPH.IsNullOrEmpty() ? "" : " edited")" type="text" name="UPH" value="@Model.ANDON.UPH" required maxlength="20" />
        
     </div>
     <div class="form-group">
         <label>@L("Plan_Count")   <span class="required"> * </span>	 	</label>
         <input class="maxlength-handler form-control @(Model.ANDON.PLAN_COUNT.IsNullOrEmpty() ? "" : " edited")" type="text" name="PLAN_COUNT" value="@Model.ANDON.PLAN_COUNT" required maxlength="20" />

     </div>
     <div class="form-group">
         <label>@L("KDLV")   <span class="required"> * </span>	 	</label>
         <input class="maxlength-handler form-control @(Model.ANDON.KDLV.IsNullOrEmpty() ? "" : " edited")" type="text" name="KDLV" value="@Model.ANDON.KDLV" required maxlength="20" />

     </div>
     <div class="form-group">
         <label>@L("Noon")   <span class="required"> * </span>	 	</label>
         <input class="maxlength-handler form-control @(Model.ANDON.NOON.IsNullOrEmpty() ? "" : " edited")" type="text" name="NOON" value="@Model.ANDON.NOON" required maxlength="20" />

     </div>
     <div class="form-group">
         <label>@L("Night")   <span class="required"> * </span>	 	</label>
         <input class="maxlength-handler form-control @(Model.ANDON.NIGHT.IsNullOrEmpty() ? "" : " edited")" type="text" name="NIGHT" value="@Model.ANDON.NIGHT" required maxlength="20" />

     </div>
     <div class="form-group">
         <label>@L("DAY_END")   <span class="required"> * </span>	 	</label>
         <input class="maxlength-handler form-control @(Model.ANDON.DAY_END.IsNullOrEmpty() ? "" : " edited")" type="text" name="DAY_END" value="@Model.ANDON.DAY_END" required maxlength="20" />

     </div>
  
     <div class="form-group">
         <label>@L("NIGHT_END")   <span class="required"> * </span>	 	</label>
         <input class="maxlength-handler form-control @(Model.ANDON.NIGHT_END.IsNullOrEmpty() ? "" : " edited")" type="text" name="NIGHT_END" value="@Model.ANDON.NIGHT_END" required maxlength="20" />

     </div>
     <div class="form-group">
         <label>@L("NOTICE")   <span class="required"> * </span>	 	</label>
         <input class="maxlength-handler form-control @(Model.ANDON.NOTICE.IsNullOrEmpty() ? "" : " edited")" type="text" name="NOTICE" value="@Model.ANDON.NOTICE" required maxlength="50" />

     </div>
    
  	@*<div class="form-group form-md-line-input form-md-floating-label  ">
            <input class="maxlength-handler form-control @(Model.BasicFactory.FactoryName.IsNullOrEmpty() ? "" : " edited")" type="text" name="FactoryName" value="@Model.BasicFactory.FactoryName"	 required 		maxlength="20"  />			
            <label>@L("FactoryName")   <span class="required"> * </span>	 	</label>
        </div>*@
   
	                  
               
  	@*<div class="form-group form-md-line-input form-md-floating-label  ">
            <input class="maxlength-handler form-control @(Model.BasicFactory.FactoryCode.IsNullOrEmpty() ? "" : " edited")" type="text" name="FactoryCode" value="@Model.BasicFactory.FactoryCode"	 required 		maxlength="20"  />			
            <label>@L("FactoryCode")   <span class="required"> * </span>	 	</label>
        </div>*@
   
	                  
            </div>
    </form>
</div>
@Html.Partial("~/Views/Common/Modals/_ModalFooterWithSaveAndCancel.cshtml")
 

@* 初始化头部 *@
@*@Html.Partial("~/Views/Common/Modals/_ModalHeader.cshtml", new ModalHeaderViewModel(Model.IsEditMode ? (L("EditFactory") + ": " + Model.ANDON.Line) : L("CreateFactory")))*@

@*<div class="modal-body">
    <form name="factoryInformationsForm" role="form" novalidate class="form-validation">
        <div class="nav-tabs-custom">
            <ul class="nav nav-tabs ">
                <li class="active"><a href="#LineInformationsTab" data-toggle="tab">@L("Lines")</a></li>
                <li><a href="#AlcCodesTab" data-toggle="tab">@L("AlcCodes")<span class="label label-success" id="assigned-role-count"></span></a></li>
            </ul>
            <div class="tab-content">
                <div class="tab-pane active" id="LineInformationsTab">
                    <form name="lineInformationsForm" role="form" novalidate class="form-validation">
                        <input type="hidden" name="Id" value="@Model.ANDON.Id" />
                        <div>
                            <div hidden="hidden">
                                @if (Model.IsEditMode)
            {
                                    <input type="hidden" name="Id" value="@Model.ANDON.Id" />
                                }
                            </div>


                            <div class="form-group ">
                                <label>@L("LineName")   <span class="required"> * </span>	 	</label>
                                <input class="maxlength-handler form-control @(Model.ANDON.Line.IsNullOrEmpty() ? "" : " edited")" type="text" name="LineName" value="@Model.ANDON.Line" required maxlength="20" />
                            </div>
                            <div class="form-group ">
                                <label>@L("LineCode")   <span class="required"> * </span>	 	</label>
                                <input class="maxlength-handler form-control @(Model.ANDON.UPH.IsNullOrEmpty() ? "" : " edited")" type="text" name="LineCode" value="@Model.ANDON.UPH" required maxlength="20" />
                            </div>
                            <div class="form-group ">
                                <label>@L("LineCode")   <span class="required"> * </span>	 	</label>
                                <input class="maxlength-handler form-control @(Model.ANDON.PLAN_COUNT.IsNullOrEmpty() ? "" : " edited")" type="text" name="LineCode" value="@Model.ANDON.PLAN_COUNT" required maxlength="20" />
                            </div>
                            <div class="form-group ">
                                <label>@L("LineCode")   <span class="required"> * </span>	 	</label>
                                <input class="maxlength-handler form-control @(Model.ANDON.KDLV.IsNullOrEmpty() ? "" : " edited")" type="text" name="LineCode" value="@Model.ANDON.KDLV" required maxlength="20" />
                            </div>
                            <div class="form-group ">
                                <label>@L("LineCode")   <span class="required"> * </span>	 	</label>
                                <input class="maxlength-handler form-control @(Model.ANDON.NIGHT.IsNullOrEmpty() ? "" : " edited")" type="text" name="LineCode" value="@Model.ANDON.KDLV" required maxlength="20" />
                            </div>
                            <div class="form-group ">
                                <label>@L("LineCode")   <span class="required"> * </span>	 	</label>
                                <input class="maxlength-handler form-control @(Model.ANDON.NOON.IsNullOrEmpty() ? "" : " edited")" type="text" name="LineCode" value="@Model.ANDON.KDLV" required maxlength="20" />
                            </div>
                            <div class="form-group ">
                                <label>@L("LineCode")   <span class="required"> * </span>	 	</label>
                                <input class="maxlength-handler form-control @(Model.ANDON.DAY_END.IsNullOrEmpty() ? "" : " edited")" type="text" name="LineCode" value="@Model.ANDON.KDLV" required maxlength="20" />
                            </div>
                            <div class="form-group ">
                                <label>@L("LineCode")   <span class="required"> * </span>	 	</label>
                                <input class="maxlength-handler form-control @(Model.ANDON.NIGHT_END.IsNullOrEmpty() ? "" : " edited")" type="text" name="LineCode" value="@Model.ANDON.KDLV" required maxlength="20" />
                            </div>
                        </div>
                    </form>
                </div>

            </div>
        </div>
         </form>
</div>
@Html.Partial("~/Views/Common/Modals/_ModalFooterWithSaveAndCancel.cshtml")*@
<!--html代码区域-->
@*<div class="modal-body">
    <form name="aNDONInformationsForm"   role="form" novalidate class="form-validation">
 <input type="hidden" name="Id" value="@Model.ANDON.Id" />
 <div class="row>
            
               
	     <div hidden="hidden">           
            @if (Model.IsEditMode)
            {
                <input type="hidden" name="Id" value="@Model.ANDON.Id"/>
            }
        </div>
	                  
               
  	<div class="form-group form-md-line-input form-md-floating-label  ">
            <input class="maxlength-handler form-control @(Model.ANDON.Line.IsNullOrEmpty() ? "" : " edited")" type="text" name="Line" value="@Model.ANDON.Line"	 required 		maxlength="20"  />			
            <label>@L("Line")   <span class="required"> * </span>	 	</label>
        </div>
   
	                  
               
  	<div class="form-group form-md-line-input form-md-floating-label  ">
            <input class="maxlength-handler form-control @(Model.ANDON.UPH.IsNullOrEmpty() ? "" : " edited")" type="text" name="UPH" value="@Model.ANDON.UPH"	 required 		maxlength="20"  />			
            <label>@L("UPH")   <span class="required"> * </span>	 	</label>
        </div>
   
	                  
               
  	<div class="form-group form-md-line-input form-md-floating-label  ">
            <input class="maxlength-handler form-control @(Model.ANDON.PLAN_COUNT.IsNullOrEmpty() ? "" : " edited")" type="text" name="PLAN_COUNT" value="@Model.ANDON.PLAN_COUNT"	 required 		maxlength="20"  />			
            <label>@L("PLAN_COUNT")   <span class="required"> * </span>	 	</label>
        </div>
   
	                  
               
  	<div class="form-group form-md-line-input form-md-floating-label  ">
            <input class="maxlength-handler form-control @(Model.ANDON.KDLV.IsNullOrEmpty() ? "" : " edited")" type="text" name="KDLV" value="@Model.ANDON.KDLV"	 required 		maxlength="20"  />			
            <label>@L("KDLV")   <span class="required"> * </span>	 	</label>
        </div>
   
	                  
               
  	<div class="form-group form-md-line-input form-md-floating-label  ">
            <input class="maxlength-handler form-control @(Model.ANDON.NOON.IsNullOrEmpty() ? "" : " edited")" type="text" name="NOON" value="@Model.ANDON.NOON"	 required 		maxlength="20"  />			
            <label>@L("NOON")   <span class="required"> * </span>	 	</label>
        </div>
   
	                  
               
  	<div class="form-group form-md-line-input form-md-floating-label  ">
            <input class="maxlength-handler form-control @(Model.ANDON.NIGHT.IsNullOrEmpty() ? "" : " edited")" type="text" name="NIGHT" value="@Model.ANDON.NIGHT"	 required 		maxlength="20"  />			
            <label>@L("NIGHT")   <span class="required"> * </span>	 	</label>
        </div>
   
	                  
               
  	<div class="form-group form-md-line-input form-md-floating-label  ">
            <input class="maxlength-handler form-control @(Model.ANDON.DAY_END.IsNullOrEmpty() ? "" : " edited")" type="text" name="DAY_END" value="@Model.ANDON.DAY_END"	 required 		maxlength="20"  />			
            <label>@L("DAY_END")   <span class="required"> * </span>	 	</label>
        </div>
   
	                  
               
  	<div class="form-group form-md-line-input form-md-floating-label  ">
            <input class="maxlength-handler form-control @(Model.ANDON.NIGHT_END.IsNullOrEmpty() ? "" : " edited")" type="text" name="NIGHT_END" value="@Model.ANDON.NIGHT_END"	 required 		maxlength="20"  />			
            <label>@L("NIGHT_END")   <span class="required"> * </span>	 	</label>
        </div>
   
	                  
            </div>
    </form>
</div>
@Html.Partial("~/Areas/Mpa/Views/Common/Modals/_ModalFooterWithSaveAndCancel.cshtml")*@
 
